pull: Add summary-{,sig-}bytes options to ostree_repo_pull()
authorPhilip Withnall <withnall@endlessm.com>
Thu, 16 Jul 2020 15:16:37 +0000 (16:16 +0100)
committerPhilip Withnall <withnall@endlessm.com>
Fri, 7 Aug 2020 15:12:15 +0000 (16:12 +0100)
commitf5da67d78a0e64117169762d102a706b941c5945
treeda488ab631d44bd06f2af1c8da35d739c4729b8b
parentbd68c7dfd7985a88cac41d060b46ce7ac6e9b052
pull: Add summary-{,sig-}bytes options to ostree_repo_pull()

These allow the `summary` and `summary.sig` files to be cached at a
higher layer (for example, flatpak) between related pull operations (for
example, within a single flatpak transaction). This avoids
re-downloading `summary.sig` multiple times throughout a transaction,
which increases the transaction’s latency and introduces the possibility
for inconsistency between parts of the transaction if the server changes
its `summary` file part-way through.

In particular, this should speed up flatpak transactions on machines
with high latency network connections, where network round trips have a
high impact on the latency of an overall operation.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
src/libostree/ostree-repo-pull.c